﻿$directory = $args[0]

cd $directory
$CurrentLocation=get-location 

$zipFile = $args[1]
$zipFileFullName = "$CurrentLocation\$zipFile"
$websiteAddress = $args[2]
$websiteName  = $args[3]
$dbname = $args[4]
$physicalPath = $args[5]

$shell=new-object -com shell.application 

$CurrentPath=$CurrentLocation.path 

$OutPutPath = "$CurrentPath\$physicalPath"

Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$directory"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$zipFile"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$zipFileFullName"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$websiteAddress"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$websiteName"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$dbname"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$physicalPath"
Add-Content C:\Sandboxes\DotNetNuke\ps.txt "$OutPutPath"
